package web.bfsdw;

import web.servlet.BfsdwRequest;
import web.servlet.BfsdwResponse;
import web.servlet.BfsdwServlet;

public class DefaultBfsdwServlet extends BfsdwServlet {

    @Override
    public void doGet(BfsdwRequest request, BfsdwResponse response) throws Exception {
        // http://localhost:8080/aaa/bbb/oneservlet?name=xiong
        // path：/aaa/bbb/oneservlet?name=xiong
        String uri = request.getUri();
        String name = uri.substring(0, uri.indexOf("?"));
        response.write("404 - no this servlet : " + name);
    }



    @Override
    public void doPost(BfsdwRequest request, BfsdwResponse response) throws Exception {
        doGet(request, response);
    }

}
